(g_str_has_prefix (line, "DEFAULT ")))
{
saw_default = TRUE;
- if (g_str_has_prefix (line, "DEFAULT ostree:"))
- regenerate_default = TRUE;
+ /* XXX Searching for patterns in the title is rather brittle,
+ * but this hack is at least noted in the code that builds
+ * the title to hopefully avoid regressions. */
+ if (g_str_has_prefix (line, "DEFAULT ostree:") || /* old format */
+ strstr (line, "(ostree") != NULL) /* new format */
+ {
+ regenerate_default = TRUE;
+ }
skip = TRUE;
}
}
}
+ /* XXX The SYSLINUX bootloader backend actually parses the title string
+ * (specifically, it looks for the substring "(ostree"), so further
+ * changes to the title format may require updating that backend. */
title_key = g_string_new (val);
if (deployment_version && *deployment_version)
{